HEX
Server: LiteSpeed
System: Linux eticaretsrv4.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: sioberen (1086)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/setuptools/command/upload.py
from distutils.command import upload as orig


class upload(orig.upload):
    """
    Override default upload behavior to look up password
    in the keyring if available.
    """

    def finalize_options(self):
        orig.upload.finalize_options(self)
        self.password or self._load_password_from_keyring()

    def _load_password_from_keyring(self):
        """
        Attempt to load password from keyring. Suppress Exceptions.
        """
        try:
            keyring = __import__('keyring')
            self.password = keyring.get_password(self.repository,
                self.username)
        except Exception:
            pass